<?php
namespace Lib;

class Server extends Model {
    protected $table = 'public.server';

    public function collect($baseUrl) {
        $url = $baseUrl . '/monitor/api/stats.php';

        if (!$tmp = collect($url)) {
            return false;
        }

        return ($r = json_decode($tmp, true)) ? $r : false;
    }

}
